const fs=require("fs");
const path=require("path");
let aa=async (ctx,next)=>{
    console.log(path.resolve(__dirname,".."));
    let data=fs.readFileSync(path.join(path.resolve(__dirname,".."),"aa.html"));
    ctx.response.type="text/html";
    ctx.response.body=data;
}
let bb=async (ctx,next)=>{
    let username=ctx.request.username;
    let password=ctx.request.password;
    crx.response.body=`欢迎你,+${username},登录成功`
}
module.exports={
    "GET/login":aa,
    "POST/tologin":bb
}